body {
    background-color: #FEFDFB;
}

input,
select,
option,
textarea {
    outline: none;
}

input:focus {
    outline: none;
}


/* 遮罩层 也就是加载的时候显示的动画 */

/*.mask {*/
/*    display: none;*/
/*    position: fixed;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    top: 0;*/
/*    left: 0;*/
/*    z-index: 99999;*/
/*    background: url(../images/loading2.gif) no-repeat center center;*/
/*    background-size: 300px auto;*/
/*    background-color: rgba(255, 255, 255, .7);*/
/*}*/

.large {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    box-shadow: 0px 7px 6px 1px rgba(60, 60, 60, 0.05);
    z-index: 999;
}

.logo {
    position: absolute;
    top: 11px;
    left: 54px;
    width: 75px;
    height: 30px;
}

.logo img {
    width: 100%;
    height: auto;
}

.browse,
.publish {
    position: absolute;
    top: 0px;
    left: 263px;
    width: 120px;
    height: 48px;
    font-size: 15px;
    font-weight: 300;
    font-family: SourceHanSansCN-Light;
    color: #3C3C3C;
    text-align: center;
    line-height: 48px;
}

.choice .publish {
    left: 383px;
}

.current {
    background: #FDFAEB;
    font-family: SourceHanSansCN-Bold;
    font-size: 15px;
    font-weight: bold;
    color: #FADA3C;
    line-height: 48px;
    height: 48px;
}

.current::after {
    content: "";
    display: block;
    width: 31px;
    height: 4px;
    background: #FADA3C;
    border-radius: 2px;
    margin: -3px auto;
}


/* 登录注册按钮 */

.register,
.login {
    position: absolute;
    top: 12px;
    right: 125px;
    width: 48px;
    height: 24px;
    background: #FFFDF4;
    border: 1px solid #F0CA10;
    border-radius: 13px;
    font-family: SourceHanSansCN-Light;
    font-size: 12px;
    font-weight: 300;
    color: #F0CA10;
    line-height: 24px;
    text-align: center;
}

#nav .login {
    right: 53px;
}

.register:hover,
.login:hover {
    background-color: #FADA3C;
    color: #fff;
}


/* 头像 */

.message {
    position: absolute;
    top: 13px;
    right: 147px;
    width: 19px;
    height: 21px;
}

.message img:nth-child(1) {
    width: 100%;
    height: auto;
}

.message img:nth-child(2) {
    position: absolute;
    top: 0;
    right: -3px;
    width: 13px;
    height: 13px;
}

.message span {
    display: block;
    position: absolute;
    top: -6px;
    right: -5px;
    width: 17px;
    height: 17px;
    background-color: red;
    border-radius: 50%;
    font-size: 10px;
    color: #fff;
    line-height: 17px;
    text-align: center;
}

.pic {
    position: absolute;
    top: 12px;
    right: 80px;
    width: 27px;
    height: 27px;
}

.pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}


/* 头像下的列表 */

.pic ul {
    margin-left: -10.5px;
    width: 48px;
    height: 77px;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 0px 0px 3px 3px;
    display: none;
}

.pic li {
    width: 48px;
    height: 26px;
    font-size: 6px;
    font-family: SourceHanSansCN-Light;
    font-weight: 300;
    color: #666666;
    transform: scale(0.85);
    line-height: 28px;
}

.pic ul li:hover {
    color: #EEC708;
}


/* 下面是主体部分 */

.box {
    width: 846px;
    height: 529px;
    margin: 65px auto 0;
}

.chat-list {
    width: 313px;
    height: 529px;
    background: #595959;
    border-radius: 5px 0px 0px 5px;
    float: left;
    /* 滚动 */
    /* overflow: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overflow: -moz-scrollbars-none;
    overflow: -moz-scrollbars-none; */
}


/* 滚动同时看不见滚动条 */


/* .chat-list::-webkit-scrollbar {
    display: none;
} */

.header {
    position: relative;
    z-index: 999;
    background: #14de7f;
    /*background: #595959;*/
    border-radius: 5px 0 0 0;
    width: 313px;
    height: 61px;
    border-bottom: 1px solid #ccc;
}


/* 巨大的搜搜框 点击小的之后展示大的 
下面的就是大的搜索框的样式 */

.search-input {
    position: relative;
    background: #595959;
    border-radius: 5px 0 0 0;
    width: 313px;
    height: 61px;
    border-bottom: 1px solid #ccc;
    outline: none;
    /* display: none; */
}

.search-input input {
    width: 247px;
    height: 24px;
    border: 1px solid #CDCDCD;
    border-radius: 12px;
    background: #818181;
    margin: 17px 13px;
    text-indent: 35px;
}

.search-input-img {
    position: absolute;
    top: 22px;
    left: 25px;
    width: 15px;
    height: 16px;
}

.pic2 {
    position: absolute;
    top: 9px;
    left: 13px;
    width: 40px;
    height: 40px;
}

.header span {
    position: absolute;
    top: 21px;
    left: 61px;
    font-size: 18px;
    font-family: SourceHanSansCN-Normal;
    font-weight: 400;
    color: #FFFEFE;
}

.pic2 img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.search-friends {
    position: absolute;
    top: 19px;
    right: 13px;
    width: 48px;
    height: 22px;
    background: url(http://localhost:8080/platform/images/search.png) no-repeat;
    /*background: url(../platform/images/search.png) no-repeat;*/
    background-size: 15px 15px;
    background-position: 6px 4px;
    background-color: #818181;
    border: 1px solid #CDCDCD;
    border-radius: 15px;
    cursor: pointer;
}


/* 聊天列表部分 */

.friends ul {
    height: 467px;
    overflow-x: hidden;
    overflow-y: hidden;
    white-space: nowrap;
}

.friends ul:hover {
    overflow-y: auto;
}


/* .friends ul::-webkit-scrollbar {
    display: none;
} */


/* 以下是自定义滚动条 */

.friends ul::-webkit-scrollbar {
    width: 7px;
    background-color: rgb(89, 89, 89);
}

.friends ul::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, rgb(129, 129, 129)), color-stop(0.72, rgb(129, 129, 129)), color-stop(0.86, rgb(129, 129, 129)));
}

.friends ul::-webkit-scrollbar-track {
    background-color: rgb(89, 89, 89);
    border-radius: 7px;
}

.friends li {
    position: relative;
    width: 313px;
    height: 61px;
    border-bottom: 1px solid #444;
}

.friends li:hover {
    background: rgba(250, 218, 60, 0.08)
}

.friend-pic {
    position: absolute;
    top: 11px;
    left: 13px;
    width: 40px;
    height: 40px;
}

.friend-pic span {
    display: block;
    position: absolute;
    top: -6px;
    right: -5px;
    width: 17px;
    height: 17px;
    background-color: red;
    border-radius: 50%;
    font-size: 10px;
    color: #fff;
    line-height: 17px;
    text-align: center;
}

.friend-pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.friends .name {
    position: absolute;
    top: 14px;
    left: 60px;
    width: 43px;
    height: 11px;
    font-size: 15px;
    font-family: SourceHanSansCN-Normal;
    font-weight: 400;
    color: #F3F3F3;
}

.friends .shortcut {
    position: absolute;
    top: 31px;
    left: 52px;
    width: 200px;
    height: 20px;
    font-size: 14px;
    font-family: SourceHanSansCN-Light;
    font-weight: 300;
    color: #AAAAAA;
    overflow: hidden;
    line-height: 20px;
    transform: scale(0.85);
}

.friends .time {
    position: absolute;
    top: 14px;
    right: 10px;
    width: 120px;
    font-size: 12px;
    font-family: SourceHanSansCN-Light;
    font-weight: 300;
    color: #AAAAAA;
    text-align: right;
}

.current2 {
    /*background: rgba(250, 218, 60, .8)!important;*/
    /*background: rgba(0, 255, 125, .78) !important;*/
    background: rgb(216 219 217) !important;
}

.current2 .name {
    color: #333;
}

.current2 .time,
.current2 .shortcut {
    color: #555;
}


/* 右侧对话框 */

.chat-content {
    position: relative;
    float: left;
    width: 533px;
    height: 529px;
    background-color: pink;
}

.firend-name {
    width: 533px;
    height: 59px;
    background: #FFFFFF;
    border: 1px solid #E6E6E6;
    border-radius: 0px 5px 0px 0px;
    font-size: 16px;
    font-family: SourceHanSansCN-Regular;
    font-weight: 400;
    color: #333333;
    text-align: center;
    line-height: 59px;
}

.chat-middle {
    width: 533px;
    height: 327px;
    background: #FFFFFF;
    border: 1px solid #E6E6E6;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-top: 13px;
}

.unread {
    position: absolute;
    bottom: 135px;
    right: 77px;
    width: 132px;
    height: 25px;
    background-color: #fff;
    text-align: center;
    border: 1px solid #aaa;
    cursor: pointer;
}

.unread span {
    display: block;
    float: left;
    height: 25px;
    color: #aaa;
    font-size: 12px;
    line-height: 25px;
}

.unread span:last-child {
    font-size: 20px;
    width: 27px;
    text-align: center;
}

.unread span:hover {
    background: #ccc;
    color: #fff;
}

.chat-middle:hover {
    overflow-y: auto;
}


/* .chat-middle::-webkit-scrollbar {
    display: none;
} */


/* 以下是自定义滚动条 */

.chat-middle::-webkit-scrollbar {
    width: 10px;
    background-color: #F5F5F5;
}

.chat-middle::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, rgb(129, 129, 129)), color-stop(0.72, rgb(129, 129, 129)), color-stop(0.86, rgb(129, 129, 129)));
}

.chat-middle::-webkit-scrollbar-track {
    background-color: #F5F5F5;
    border-radius: 10px;
}


/* 还没有打开对话框的时候 提示信息 */

.chatMsg {
    text-align: center;
    font-size: 16px;
    color: #FADA3C;
    font-weight: bold;
    margin-top: 10px;
    letter-spacing: 1px;
}


/* .chat-time {
    position: relative;
    height: 63px;
}

.chat-time span {
    position: absolute;
    top: 27px;
    left: 223px;
    font-size: 9px;
    font-family: SourceHanSansCN-Light;
    font-weight: 300;
    color: #AAAAAA;
} */

.you,
.me {
    display: block;
    width: 533px;
    margin-bottom: 20px;
}


/* 清除浮动 */

.you::after,
.me::after {
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
    clear: both;
}


/* span本来就是根据内容大小变换自己的大小的 然后加了一个padding
最后设置一个max-width 实现内容的自己撑大li 
 但是不要忘记给li清除浮动 因为里面的元素都浮动了 */

.you span,
.me span {
    float: left;
    font-size: 12px;
    font-family: SourceHanSansCN-Light;
    padding: 10px;
    font-weight: 300;
    color: #333333;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 5px;
    max-width: 305px;
}


/* 聊天时间上面的分割线 */

.line {
    border-top: 0.8px dashed black;
    width: 100%;
    margin-top: 6px;
    font-size: 8px;
}

.image-friend,
.image-me {
    float: left;
    width: 40px;
    height: 40px;
    margin: 0 10px 0 27px;
}

.image-friend img,
.image-me img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}


/* 自己的是右边浮动 */

.me span,
.image-me {
    float: right;
}

.me span {
    /*background: #FADA3C;*/
    background: #00fb70b0;
}


/* 自己的margin要反过来设置 */

.image-me {
    margin: 0 27px 0 10px;
}


/* 底部发送框 */

.chat-bottom {
    position: relative;
    width: 533px;
    height: 144px;
    background: #FFFFFF;
    border: 1px solid #E6E6E6;
    border-radius: 0px 0px 5px 0px;
}

.chat-bottom textarea {
    width: 100%;
    height: 68%;
    resize: none;
    border: none;
    outline: none;
    font-size: 12px;
    font-family: SourceHanSansCN-Light;
    font-weight: 300;
    padding: 13px 25px;
    box-sizing: border-box;
    overflow-y: auto;
}


/* 以下是自定义滚动条 */

.chat-bottom textarea::-webkit-scrollbar {
    width: 10px;
    background-color: #F5F5F5;
}

.chat-bottom textarea::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, rgb(250, 218, 60)), color-stop(0.72, rgb(250, 218, 60)), color-stop(0.86, rgb(250, 218, 60)));
}

.chat-bottom textarea::-webkit-scrollbar-track {
    background-color: #F5F5F5;
    border-radius: 10px;
}


/* .chat-bottom textarea::-webkit-scrollbar {
    display: none;
} */


/* 表情图片和发送按钮 */

.chat-faces,
.chat-img {
    position: absolute;
    bottom: 0;
    right: 81px;
    width: 47px;
    height: 47px;
}

.chat-faces {
    right: 116px;
}

.chat-faces img,
.chat-img img {
    width: 47px;
    height: 47px;
}

.chat-send {
    position: absolute;
    bottom: 13px;
    right: 27px;
    width: 48px;
    height: 24px;
    background: #4fffa6;
    border-radius: 2px;
    font-size: 11px;
    font-family: SourceHanSansCN-Normal;
    font-weight: 400;
    color: #333333;
    border: none;
    outline: none;
    cursor: pointer;
}